package com.panfeng.xcloud.boss.provider.rpc.fallback;

import com.alibaba.fastjson.JSON;
import com.panfeng.xcloud.boss.provider.dto.request.ExchangeOperateReqDTO;
import com.panfeng.xcloud.boss.provider.rpc.assets.ExchangeOperateServiceFeignApi;
import com.panfeng.xcloud.common.core.web.vo.ResponseVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

@Slf4j
@Component
public class ExchangeOperateServiceApiFeignApiFallback implements ExchangeOperateServiceFeignApi {

    @Override
    public ResponseVO getTotalAvaliableMoney(@RequestBody ExchangeOperateReqDTO exchangeOperateReqDTO) {
        log.warn("请求处理异常，触发熔断，请注意查看，getTotalAvaliableMoney={}", (null != exchangeOperateReqDTO ? JSON.toJSONString(exchangeOperateReqDTO) : ""));
        return null;
    }

    @Override
    public ResponseVO getRiskRate(@RequestBody ExchangeOperateReqDTO exchangeOperateReqDTO) {
        log.warn("请求处理异常，触发熔断，请注意查看，getRiskRate={}", (null != exchangeOperateReqDTO ? JSON.toJSONString(exchangeOperateReqDTO) : ""));
        return null;
    }

    @Override
    public ResponseVO getAvaliablePosition(@RequestBody ExchangeOperateReqDTO exchangeOperateReqDTO) {
        log.warn("请求处理异常，触发熔断，请注意查看，getAvaliablePosition={}", (null != exchangeOperateReqDTO ? JSON.toJSONString(exchangeOperateReqDTO) : ""));
        return null;
    }

    @Override
    public ResponseVO getPositionAgvPrice(@RequestBody ExchangeOperateReqDTO exchangeOperateReqDTO) {
        log.warn("请求处理异常，触发熔断，请注意查看，getPositionAgvPrice={}", (null != exchangeOperateReqDTO ? JSON.toJSONString(exchangeOperateReqDTO) : ""));
        return null;
    }

    @Override
    public ResponseVO getAvaliableMoney(@RequestBody ExchangeOperateReqDTO exchangeOperateReqDTO) {
        log.warn("请求处理异常，触发熔断，请注意查看，getAvaliableMoney={}", (null != exchangeOperateReqDTO ? JSON.toJSONString(exchangeOperateReqDTO) : ""));
        return null;
    }

    @Override
    public ResponseVO getAvaliablePieces(@RequestBody ExchangeOperateReqDTO exchangeOperateReqDTO) {
        log.warn("请求处理异常，触发熔断，请注意查看，getAvaliablePieces={}", (null != exchangeOperateReqDTO ? JSON.toJSONString(exchangeOperateReqDTO) : ""));
        return null;
    }

    @Override
    public ResponseVO trade(@RequestBody ExchangeOperateReqDTO exchangeOperateReqDTO) {
        log.warn("请求处理异常，触发熔断，请注意查看，trade={}", (null != exchangeOperateReqDTO ? JSON.toJSONString(exchangeOperateReqDTO) : ""));
        return null;
    }

    @Override
    public ResponseVO getOrderDetail(@RequestBody ExchangeOperateReqDTO exchangeOperateReqDTO) {
        log.warn("请求处理异常，触发熔断，请注意查看，getOrderDetail={}", (null != exchangeOperateReqDTO ? JSON.toJSONString(exchangeOperateReqDTO) : ""));
        return null;
    }

    @Override
    public ResponseVO transferInner(@RequestBody ExchangeOperateReqDTO exchangeOperateReqDTO) {
        log.warn("请求处理异常，触发熔断，请注意查看，transferInner={}", (null != exchangeOperateReqDTO ? JSON.toJSONString(exchangeOperateReqDTO) : ""));
        return null;
    }

    @Override
    public ResponseVO getAppearMarketPrice(@RequestBody ExchangeOperateReqDTO exchangeOperateReqDTO) {
        log.warn("请求处理异常，触发熔断，请注意查看，getAppearMarketPrice={}", (null != exchangeOperateReqDTO ? JSON.toJSONString(exchangeOperateReqDTO) : ""));
        return null;
    }

    @Override
    public ResponseVO getMarketPriceDepth(@RequestBody ExchangeOperateReqDTO exchangeOperateReqDTO) {
        log.warn("请求处理异常，触发熔断，请注意查看，getMarketPriceDepth={}", (null != exchangeOperateReqDTO ? JSON.toJSONString(exchangeOperateReqDTO) : ""));
        return null;
    }

    @Override
    public ResponseVO getCandleStick(@RequestBody ExchangeOperateReqDTO exchangeOperateReqDTO) {
        log.warn("请求处理异常，触发熔断，请注意查看，getCandleStick={}", (null != exchangeOperateReqDTO ? JSON.toJSONString(exchangeOperateReqDTO) : ""));
        return null;
    }

}
